package w_model

import (
	"time"

	"gorm.io/gorm"
)

const TableNameSKc = "s_kc"

// SKc mapped from table <s_kc>
type SKc struct {
	ID        string         `gorm:"column:id;type:character varying(20);primaryKey" json:"id"`
	SkuID     string         `gorm:"column:sku_id;type:character varying(20)" json:"sku_id"`
	HwID      string         `gorm:"column:hw_id;type:character varying(20)" json:"hw_id"`
	CreatedBy string         `gorm:"column:created_by;type:character varying(20)" json:"created_by"`
	UpdatedBy string         `gorm:"column:updated_by;type:character varying(20)" json:"updated_by"`
	CreatedAt time.Time      `gorm:"column:created_at;type:timestamp(6) without time zone" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:timestamp without time zone" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp(6) without time zone;index:idx_deleted,priority:1" json:"deleted_at"`
}

// TableName SKc's table name
func (*SKc) TableName() string {
	return TableNameSKc
}
